var express = require('express');
var router = express.Router();

const {
  login,
  register,
  upload,
  updateInfo
} = require('../controllers/c_user')

/* GET users listing. */
router.post('/register', register);
router.post('/login', login);

//上传图片
router.post('/upload', upload);

// 修改个人信息-----
router.put('/:_id', updateInfo);


module.exports = router;
